import request from '@/utils/request'
import { getToken } from '@/utils/auth' // get token from cookie


// 自增客户编号
export function GetNewCustomerNo(data) {
  return request({
    url: '/api/BaseData/GetNewCustomerNo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 操作日志
export function GetOperateRecord(data) {
  return request({
    url: '/api/BaseData/GetOperateRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取系统权限信息
export function GetRightInfo(data) {
  return request({
    url: '/api/BaseData/GetRightInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}


// 区域信息
export function GetAreaInfo(data) {
  return request({
    url: '/api/BaseData/GetAreaInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddAreaInfo(data) {
  return request({
    url: '/api/BaseData/AddAreaInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeleteAreaInfo(data) {
  return request({
    url: '/api/BaseData/DeleteAreaInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 账册信息
export function GetBookInfo(data) {
  return request({
    url: '/api/BaseData/GetBookInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddBooKInfo(data) {
  return request({
    url: '/api/BaseData/AddBooKInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeleteBooKInfo(data) {
  return request({
    url: '/api/BaseData/DeleteBooKInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 营业点信息
export function GetBranchInfo(data) {
  return request({
    url: '/api/BaseData/GetBranchInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddBranchInfo(data) {
  return request({
    url: '/api/BaseData/AddBranchInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeleteBranchInfo(data) {
  return request({
    url: '/api/BaseData/DeleteBranchInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 公司信息
export function GetCompanyInfo(data) {
  return request({
    url: '/api/BaseData/GetCompanyInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddCompanyInfo(data) {
  return request({
    url: '/api/BaseData/AddCompanyInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeleteCompanyInfo(data) {
  return request({
    url: '/api/BaseData/DeleteCompanyInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 通过客户ID 查找客户信息
export function GetCustomerByID(data) {
  return request({
    url: '/api/BaseData/GetCustomerByID',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 客户信息
export function GetCustomerInfo(data) {
  return request({
    url: '/api/BaseData/GetCustomerInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddCustomerInfo(data) {
  return request({
    url: '/api/BaseData/AddCustomerInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 客户状态
export function GetCustomerState(data) {
  return request({
    url: '/api/BaseData/GetCustomerState',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 客户类型
export function GetCustomerType(data) {
  return request({
    url: '/api/BaseData/GetCustomerType',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeleteCustomerInfo(data) {
  return request({
    url: '/api/BaseData/DeleteCustomerInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 部门信息
export function GetDepartmentInfo(data) {
  return request({
    url: '/api/BaseData/GetDepartmentInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddDepartmentInfo(data) {
  return request({
    url: '/api/BaseData/AddDepartmentInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeleteDepartmentInfo(data) {
  return request({
    url: '/api/BaseData/DeleteDepartmentInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 小区信息
export function GetEstateInfo(data) {
  return request({
    url: '/api/BaseData/GetEstateInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddEstateInfo(data) {
  return request({
    url: '/api/BaseData/AddEstateInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeleteEstateInfo(data) {
  return request({
    url: '/api/BaseData/DeleteEstateInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 滞纳金计算参数
export function AddLateFeeParam(data) {
  return request({
    url: '/api/BaseData/AddLateFeeParam',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 邮件服务器配置
export function AddMailServerConfig(data) {
  return request({
    url: '/api/BaseData/AddMailServerConfig',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 表计信息
export function GetMeterInfoByID(data) {
  return request({
    url: '/api/BaseData/GetMeterInfoByID',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}


export function GetMeterInfo(data) {
  return request({
    url: '/api/BaseData/GetMeterInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddMeterInfo(data) {
  return request({
    url: '/api/BaseData/AddMeterInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeleteMeterInfo(data) {
  return request({
    url: '/api/BaseData/DeleteMeterInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 表参数配置
export function GetMeterParam(data) {
  return request({
    url: '/api/BaseData/GetMeterParam',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddMeterParam(data) {
  return request({
    url: '/api/BaseData/AddMeterParam',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeleteMeterParam(data) {
  return request({
    url: '/api/BaseData/DeleteMeterParam',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 通知配置 公司
export function AddNoticeConfig1(data) {
  return request({
    url: '/api/BaseData/AddNoticeConfig1',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 通知配置 客户
export function AddNoticeConfig2(data) {
  return request({
    url: '/api/BaseData/AddNoticeConfig2',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 操作员信息
export function GetOperatorInfo(data) {
  return request({
    url: '/api/BaseData/GetOperatorInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddOperatorInfo(data) {
  return request({
    url: '/api/BaseData/AddOperatorInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeleteOperatorInfo(data) {
  return request({
    url: '/api/BaseData/DeleteOperatorInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 价格方案
export function GetPricePlan(data) {
  return request({
    url: '/api/BaseData/GetPricePlan',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 自增价格方案编号
export function GetNewEstateNo(data) {
  return request({
    url: '/api/BaseData/GetNewEstateNo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 自增区域编号
export function GetNewPriceNo(data) {
  return request({
    url: '/api/BaseData/GetNewPriceNo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddPricePlan(data) {
  return request({
    url: '/api/BaseData/AddPricePlan',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeletePricePlan(data) {
  return request({
    url: '/api/BaseData/DeletePricePlan',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 价格信息
export function GetPriceInfo(data) {
  return request({
    url: '/api/BaseData/GetPriceInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddPriceInfo(data) {
  return request({
    url: '/api/BaseData/AddPriceInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeletePriceInfo(data) {
  return request({
    url: '/api/BaseData/DeletePriceInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 角色信息
export function GetRoleInfo(data) {
  return request({
    url: '/api/BaseData/GetRoleInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function AddRoleInfo(data) {
  return request({
    url: '/api/BaseData/AddRoleInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

export function DeleteRoleInfo(data) {
  return request({
    url: '/api/BaseData/DeleteRoleInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 短信服务器配置
export function AddSmsServerConfig(data) {
  return request({
    url: '/api/BaseData/AddSmsServerConfig',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 表计厂家
export function GetFactoryType(data) {
  return request({
    url: '/api/BaseData/GetFactoryType',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 表计类型
export function GetMeterType(data) {
  return request({
    url: '/api/BaseData/GetMeterType',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 计费类型
export function GetMeterCalcType(data) {
  return request({
    url: '/api/BaseData/GetMeterCalcType',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 表计状态 开户状态
export function GetMeterState(data) {
  return request({
    url: '/api/BaseData/GetMeterState',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 支付方式
export function GetPayWay(data) {
  return request({
    url: '/api/BaseData/GetPayWay',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 开户
export function OpenAccount(data) {
  return request({
    url: '/api/Business/OpenAccount/Open',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 充值记录
export function ChargeRecord(data) {
  return request({
    url: '/api/Reports/Query/ChargeRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 修改充值记录状态
export function UpdateChargeState(data) {
  return request({
    url: '/api/BaseData/UpdateChargeState',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 收费记录
export function ReceiptRecord(data) {
  return request({
    url: '/api/Reports/Query/ReceiptRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 结算记录 打印
export function BalanceRecord(data) {
  return request({
    url: '/api/Reports/Query/BalanceRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 储值记录
export function StoreRecord(data) {
  return request({
    url: '/api/Reports/Query/StoreRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 调价记录
export function ChangePriceRecord(data) {
  return request({
    url: '/api/Reports/Query/ChangePriceRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 实时数据
export function RealDatasRecord(data) {
  return request({
    url: '/api/Reports/Query/RealDatasRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 历史数据
export function HisDatasRecord(data) {
  return request({
    url: '/api/Reports/Query/HisDatasRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 每日
export function DayUseRecord(data) {
  return request({
    url: '/api/Reports/Query/DayUseRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 每月
export function MonthUseRecord(data) {
  return request({
    url: '/api/Reports/Query/MonthUseRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 设置参数 
// 获取区域号设置信息
export function GetAreaNoSettings(data) {
  return request({
    url: '/api/SystemSettings/GetAreaNoSettings',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 更新区域号设置信息
export function UpdateAreaNoSettings(data) {
  return request({
    url: '/api/SystemSettings/UpdateAreaNoSettings',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取计费策略设置信息
export function GetComputePolicy(data) {
  return request({
    url: '/api/SystemSettings/GetComputePolicy',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 更新计费策略设置信息
export function UpdateComputePolicy(data) {
  return request({
    url: '/api/SystemSettings/UpdateComputePolicy',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取其他配置项
export function GetOtherSettings(data) {
  return request({
    url: '/api/SystemSettings/GetOtherSettings',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 更新其他配置项
export function UpdateOtherSettings(data) {
  return request({
    url: '/api/SystemSettings/UpdateOtherSettings',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取充值审核金额信息
export function GetChargeAuditMoneySetting(data) {
  return request({
    url: '/api/SystemSettings/GetChargeAuditMoneySetting',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 更新充值审核金额信息
export function UpdateChargeAuditMoneySetting(data) {
  return request({
    url: '/api/SystemSettings/UpdateChargeAuditMoneySetting',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取当天充值情况
export function CurrentDayChargeStat(data) {
  return request({
    url: '/api/Business/Prepay/CurrentDayChargeStat',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 强制设置充值状态和充值次数
export function ForceSetChargeState(data) {
  return request({
    url: '/api/Business/Prepay/ForceSetChargeState',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取实时抄表数据
export function GetRealData(data) {
  return request({
    url: '/api/Business/Remote/GetRealData/' + data,
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
  })
}

// 预付费表根据抄表读数进行结算
export function BalanceFee(data) {
  return request({
    url: '/api/Business/Prepay/BalanceFee',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 预储值
export function StoreMoney(data) {
  return request({
    url: '/api/Business/Postpay/StoreMoney',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取预储值的剩余金额
export function GetStoreRemainMoney(data) {
  return request({
    url: '/api/Business/Postpay/GetStoreRemainMoney/' + data,
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
  })
}


// 由用量计算金额
export function VolumToMoney(data) {
  return request({
    url: '/api/Business/Computing/VolumToMoney',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 由金额计算用量
export function MoneyToVolum(data) {
  return request({
    url: '/api/Business/Computing/MoneyToVolum',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 远程充值(先审核后发送)
export function ChargeFee(data) {
  return request({
    url: '/api/Business/Remote/ChargeFee',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 远程控制命令查询
export function CtrlQuery(data) {
  return request({
    url: '/api/Business/Remote/CtrlQuery',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 远程控制命令重发
export function CtrlRetry(data) {
  return request({
    url: '/api/Business/Remote/CtrlRetry',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 远程控制命令取消
export function CtrlCancel(data) {
  return request({
    url: '/api/Business/Remote/CtrlCancel',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 远程控制命令详情
export function GetCtrlDetial(data) {
  return request({
    url: '/api/Business/Remote/GetCtrlDetial/' + data,
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8'
  })
}

// 远程控制命令发送(先审核后发送)
export function CtrlCmdSend(data) {
  return request({
    url: '/api/Business/Remote/CtrlCmdSend',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 根据读卡的到的参数获取表信息
export function GetReadCardData(data) {
  return request({
    url: '/api/Business/ICCard/GetReadCardData',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 开户写卡,获取制用户卡的写卡参数
export function GetInitCardData(data) {
  return request({
    url: '/api/Business/ICCard/GetInitCardData',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 制卡 hostapi本地开启服务

// IC卡操作确认，在写卡成功后调用 （制卡成功后）
export function ICCardCommit(data) {
  return request({
    url: '/api/Business/ICCard/ICCardCommit',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取指定表计的补卡数据
export function GetReMakeData(data) {
  return request({
    url: '/api/Business/ICCard/GetReMakeData',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 补卡，获取写卡参数
export function GetReMakeCardData(data) {
  return request({
    url: '/api/Business/ICCard/GetReMakeCardData',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 充值，获取写卡参数
export function GetWriteCardData(data) {
  return request({
    url: '/api/Business/ICCard/GetWriteCardData',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}


// 清卡，获取写卡参数
export function GetClearCardData(data) {
  return request({
    url: '/api/Business/ICCard/GetReMakeCardData',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 审核记录
export function GetCmdAuditRecord(data) {
  return request({
    url: '/api/BaseData/GetCmdAuditRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 更新审核状态
export function UpdateCmdAuditRecordState(data) {
  return request({
    url: '/api/BaseData/UpdateCmdAuditRecordState',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}


// 下载Grid + Report 模版
export function DownLoadTpl(data) {
  return request({
    url: '/api/Reports/Export/DownLoadTpl?templateCode=' + data,
    method: 'get',
    'Content-Type': 'application/json; charset=utf-8'
  })
}

// 获取预付费结算单打印参数
export function GetPrepayBalanceInvoiceData(data) {
  return request({
    url: '/api/Reports/Export/GetPrepayBalanceInvoiceData?balanceFeeId=' + data,
    method: 'get',
    'Content-Type': 'application/json; charset=utf-8'
  })
}

// 收费单打印 步骤1
export function GetTemplateCode(data,token) {
  return request({
    url: '/api/Reports/Export/GetTemplateCode?receiptId=' + data + '&token=' + token,
    method: 'get',
    'Content-Type': 'application/json; charset=utf-8'
  })
}

// 更新结算报表状态
export function UpdateBalanceFee(data) {
  return request({
    url: '/api/BaseData/UpdateBalanceFee',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 充值记录数据统计
export function ChargeRecordStatistic(data) {
  return request({
    url: '/api/Reports/Query/ChargeRecordStatistic',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 预储值记录数据统计
export function StoreRecordStatistic(data) {
  return request({
    url: '/api/Reports/Query/StoreRecordStatistic',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 收费记录数据统计
export function ReceiptRecordStatistic(data) {
  return request({
    url: '/api/Reports/Query/ReceiptRecordStatistic',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 结算记录数据统计
export function BalanceRecordStatistic(data) {
  return request({
    url: '/api/Reports/Query/BalanceRecordStatistic',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取某一时间点前的最新历史数据
export function GetLatestData(data) {
  return request({
    url: '/api/Business/Remote/GetLatestData',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 抄表参数信息
export function GetBalanceParamModel(data) {
  return request({
    url: '/api/GetBalanceParamModel/' + data,
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8'
  })
}

// 抄表参数设置
export function AddBalanceParam(data) {
  return request({
    url: '/api/BaseData/AddBalanceParam',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取最后一次结算记录
export function GetLatestBalanceFee(data) {
  return request({
    url: '/api/Business/Prepay/GetLatestBalanceFee',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 导出结算记录
export function BalanceFeeExport(enc,token) {
  return request({
    url: '/api/Reports/Export/BalanceFeeExport?p=' + enc + '&token=' + token,
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8'
  })
}

// 每日汇总
export function EveryDayUseRecord(data) {
  return request({
    url: '/api/Reports/Scada/EveryDayUseRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 每月汇总
export function EveryMonthUseRecord(data) {
  return request({
    url: '/api/Reports/Scada/EveryMonthUseRecord',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 曲线分析
export function SomeMeterUseStatics(data) {
  return request({
    url: '/api/Reports/Scada/SomeMeterUseStatics',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取设备报警信息
export function GetDeviceAlarmInfo(data) {
  return request({
    url: '/api/BaseData/GetDeviceAlarmInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取报警数量
export function GetAlarmCount(data) {
  return request({
    url: '/api/BaseData/GetAlarmCount',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取报警参数
export function GetDeviceAlarmParam(data) {
  return request({
    url: '/api/BaseData/GetDeviceAlarmParam',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 设置报警参数
export function AddDeviceAlarmParam(data) {
  return request({
    url: '/api/BaseData/AddDeviceAlarmParam',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取报警弹窗通知
export function GetOperatorInfoByID(data) {
  return request({
    url: '/api/BaseData/GetOperatorInfoByID',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 设置报警弹窗通知
export function UpdateOperatorPopup(data) {
  return request({
    url: '/api/BaseData/UpdateOperatorPopup',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 确认报警
export function UpdateDeviceAlarm(data) {
  return request({
    url: '/api/BaseData/UpdateDeviceAlarm',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取工艺图
export function GetProcessChartInfo(data) {
  return request({
    url: '/api/BaseData/GetProcessChartInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 新增工艺图
export function AddProcessChartInfo(data) {
  return request({
    url: '/api/BaseData/AddProcessChartInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 删除工艺图
export function DeleteProcessChartInfo(data) {
  return request({
    url: '/api/BaseData/DeleteProcessChartInfo',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取工艺图图片
export function DownloadTpl(data) {
  return request({
    url: '/api/Reports/ProcessChart/DownloadTpl?chartNo=' + data,
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
  })
}

// 获取工艺图图片数据配置
export function DownloadCfg(data) {
  return request({
    url: '/api/Reports/ProcessChart/DownloadCfg?chartNo=' + data,
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
  })
}

// 获取工艺图图片文本
export function GetDispText(data) {
  return request({
    url: '/api/Reports/ProcessChart/GetDispText',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 上传工艺图图片文本
export function UploadTpl(data,ChartNo) {
  return request({
    url: '/api/Reports/ProcessChart/UploadTpl?chartNo=' + ChartNo,
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 获取抄表任务
export function GetBatchBalanceTask(data) {
  return request({
    url: '/api/BaseData/GetBatchBalanceTask',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 新增抄表任务
export function AddBatchBalanceTask(data) {
  return request({
    url: '/api/BaseData/AddBatchBalanceTask',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 删除抄表任务
export function DeleteBatchBalanceTask(data) {
  return request({
    url: '/api/BaseData/DeleteBatchBalanceTask',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}

// 物联网平台
export function GetIotPlatforms(data) {
  return request({
    url: '/api/BaseData/GetIotPlatforms',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}


// 余额报警提醒
export function UpdateMeterRemainValue(data) {
  return request({
    url: '/api/BaseData/UpdateMeterRemainValue',
    method: 'post',
    'Content-Type': 'application/json; charset=utf-8',
    data: data
  })
}
